#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <string>
#include <QThread>
#include<iostream>
using namespace std;
class SleeperThread : public QThread
{
public:
    static void msleep(unsigned long msecs)
    {
        QThread::msleep(msecs);
    }
};



namespace Ui {
class MainWindow;
}



class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

public slots:
    void buttonClientHandler();
    void dropDownListButtonHandler();
    void dropDownListHandler();
    void textEditHandler();
    void ButtonRefreshHandler();
    
private:
    Ui::MainWindow *ui;
    string path;

    void setupCompanyImage();
    std::string getFilenameFromLineEdit();

    void createServerFileList();
    void displayFileList();
    void initFileList();



    void transferFileFromServer(std::string);
    void displayContentsOfFile(std::string);
    void displayFileSizes(std::string);
    std::string integerToString(int);

};

#endif // MAINWINDOW_H
